package cn.yzfy.common.model.dto;

import cn.yzfy.common.base.dto.BaseDTO;
import cn.yzfy.common.validate.ValidateNotChinese;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serial;

/**
 * @author 一朝风月
 * @date 2025/9/11 18:11
 * @Code 面向注解面向卿，终无解释再无你
 * @description 登录输入参数DTO对象
 */

@EqualsAndHashCode(callSuper = false) @Schema(description = "登录参数模型", name = "登录请求参数")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LoginInputDTO extends BaseDTO {

    @Serial
    private static final long serialVersionUID = 4764993259094902520L;

    @Schema(description = "验证码")
    private String captcha;

    @ValidateNotChinese.ValidateNotNullAndEmpty(message = "密码不能为空")
    @Schema(description = "密码")
    private String password;

    @ValidateNotChinese.ValidateNotNullAndEmpty(message = "登录账号不能为空")
    @Schema(description = "账号")
    private String account;
}